<template>
	 <view class="TutorAppraiseItem" v-for="(item,index) in listData" :key="index">
		 <view class="left"> 
				 <tui-image-group borderColor="#7cb4a3"   :imageList="[{src:ossUrl+item.avatar}]" isGroup width="100rpx" height="100rpx"></tui-image-group>
		 </view>
		 <view class="right">
				<view class="top">
					<view class="top_lt"><text>{{item.nickname}}</text></view>
					<view class="top_rt"><text>{{item.commentTime}}</text></view>
				</view>
				<view class="details"><text>{{item.content}}</text></view>
				<view class="footerText" v-if="!!item.reply&&item.reply.id"> 
					<text>回复</text>
					<text class="center">@{{item.nickname}}：</text>
					<text>{{item.content}}</text>
				</view>
		 </view>
	 </view>
</template>

<script>
	export default {
		name: 'TutorAppraiseItem',
		props: {
			//数据
			listData:{
				type: Array,
				default:[]
			},
			//oss
			ossUrl:{
				type: String,
				default:''
			}
		},
		data() {
			return {
				 
			};
		},
		methods: { 
			 
		}
	};
</script>

<style  lang="scss" scoped>
	.TutorAppraiseItem{
		display: flex; 
		padding: 20rpx 20rpx 30rpx 20rpx;
		border-bottom: 2rpx solid #F5F5F5;
		.left{
		  width: 100rpx;
		  height: 100rpx;
		  border-radius: 50%;
		  border: 6rpx solid #72c9c7; 
		}
		.right{
			flex: 1;
			padding-left: 20rpx;
			 .top{
				 display: flex;
				 align-items: center;
				 justify-content: space-between;
				 .top_lt{
					font-weight: 500;
					font-size: 32rpx;
					color: #000000;
					line-height: 38rpx;
					width: 50%;
					text-align: left;
					font-style: normal;
					text-transform: none;
				 }
				 .top_rt{
					font-weight: 500;
					font-size: 20rpx;
					color: #999999;
					line-height: 23rpx;
					text-align: right;
					font-style: normal;
					text-transform: none;
				 }
			 }
			 .details{
				 margin-top: 16rpx;
				font-weight: 400;
				font-size: 24rpx;
				color: #666666;
				line-height: 28rpx;
				text-align: left;
				font-style: normal;
				text-transform: none;
			 }
			 .footerText{
				 display: flex;
				 align-items: center;
				 color: #666666;
				 font-size: 24rpx;
				 margin-top: 8rpx;
				 .center{
					 color: #2FD7D3;
				 }
			 }
		}
	}
	  
	 
</style>